package com.newdream.clientdemo.service;

import com.newdream.clientdemo.mapper.test.UserMapper;
import com.newdream.clientdemo.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ author: sanglei
 * @ date: 2019-04-19 16:26
 * @ description:
 */
@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public User getUserById(Integer id){
        User user = userMapper.getUser(id);
        return user;
    }
}
